package com.yc.nfc;

import java.io.FileDescriptor;

/**
 * Created by Administrator on 2016-07-11.
 */
public class CardUtils {
    static {
        System.loadLibrary("nfc_jni");
    }
    public final static native FileDescriptor open(String path, int baudrate, int flags);
    public final static native void close(FileDescriptor fd);
    public final static native void  getAnthCode(byte[] Snr,byte[]  InKey,byte[]  OutPassword);
    public synchronized final static native CardInfo convertBufferToClass(byte[][] Sector);
    public synchronized final static native void  convertClassToBuffer(byte[][] Sector,CardInfo CardClass);
}
